package com.zgjkhis.modules.outpatient.service;

import com.zgjkhis.common.service.BaseService;
import com.zgjkhis.domain.PageResult;
import com.zgjkhis.modules.outpatient.domain.Account;
import com.zgjkhis.modules.outpatient.dto.AccountDto;
import com.zgjkhis.modules.outpatient.dto.AccountQueryCriteria;
import org.springframework.data.domain.Pageable;
import org.springframework.web.multipart.MultipartFile;

/**
 * @Author yzq
 * @Description 患者service
 * @Date 2021/9/3 10:10
 * @Param
 * @return
 **/
public interface AccountService extends BaseService<Account> {

    /**
     * @Author yzq
     * @Description 根据id查看患者
     * @Date 2021/9/3 10:16
     * @Param [id]
     * @return java.lang.Object
     **/
    AccountDto findDetailById(String id);

    /**
     * @Author yzq
     * @Description 分页查询患者信息
     * @Date 2021/9/3 10:53
     * @Param [criteria, pageable]
     * @return java.lang.Object
     **/
    PageResult<AccountDto> findAllByPageable(AccountQueryCriteria criteria, Pageable pageable);

    /**
     * @Author yzq
     * @Description ；批量导入患者
     * @Date 2021/9/3 13:49
     * @Param [file]
     * @return void
     **/
    void batchSave(MultipartFile file) throws Exception;
}
